import './reset.css';
import './index.styl';

function resizeWindow() {
  // 获取viewport宽度
  let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;

  let htmlDom = document.getElementsByTagName('html')[0];
  htmlDom.style.fontSize = htmlWidth / 10 + 'px';
}

window.onload = function () {
  resizeWindow();
}
window.addEventListener("resize", resizeWindow)
